<!-- This comment will put IE 6, 7 and 8 in quirks mode -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Voodoo Shader Framework: VoodooShader::Adapter Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javaScript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body onload='searchBox.OnSelectItem(0);'>
<!-- Generated by Doxygen 1.6.3 -->
<script type="text/javascript"><!--
var searchBox = new SearchBox("searchBox", "search",false,'Search');
--></script>
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
      <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <img id="MSearchSelect" src="search/search.png"
             onmouseover="return searchBox.OnSearchSelectShow()"
             onmouseout="return searchBox.OnSearchSelectHide()"
             alt=""/>
        <input type="text" id="MSearchField" value="Search" accesskey="S"
             onfocus="searchBox.OnSearchFieldFocus(true)" 
             onblur="searchBox.OnSearchFieldFocus(false)" 
             onkeyup="searchBox.OnSearchFieldChange(event)"/>
        <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
        </div>
      </li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
      <li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
    </ul>
  </div>
  <div class="navpath"><a class="el" href="namespace_voodoo_shader.html">VoodooShader</a>::<a class="el" href="class_voodoo_shader_1_1_adapter.html">Adapter</a>
  </div>
</div>
<div class="contents">
<h1>VoodooShader::Adapter Class Reference</h1><!-- doxytag: class="VoodooShader::Adapter" -->
<p>Graphics adapter class, responsible for interfacing the Voodoo <a class="el" href="class_voodoo_shader_1_1_core.html" title="Core engine class for the Voodoo Shader Framework.">Core</a> with a given graphics program.  
<a href="#_details">More...</a></p>

<p><code>#include &lt;<a class="el" href="_adapter_8hpp_source.html">Adapter.hpp</a>&gt;</code></p>

<p>Inherited by <a class="el" href="class_voodoo_shader_1_1_direct_x9_1_1_adapter.html">VoodooShader::DirectX9::Adapter</a><code> [private]</code>.</p>

<p><a href="class_voodoo_shader_1_1_adapter-members.html">List of all members.</a></p>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td colspan="2"><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_voodoo_shader_1_1_adapter.html#a85e10c37608dc4463a4527d48f49c31a">Apply</a> (<a class="el" href="class_voodoo_shader_1_1_parameter.html">Parameter</a> *param)=0</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_voodoo_shader_1_1_adapter.html#a05b2fafa81c0fdf3d2516720cd85ba1d">Bind</a> (<a class="el" href="class_voodoo_shader_1_1_pass.html">Pass</a> *shader)=0</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="class_voodoo_shader_1_1_texture.html">Texture</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_voodoo_shader_1_1_adapter.html#a9724968f648bbe6181ec1b5a890171ce">CreateTexture</a> (size_t width, size_t height, size_t depth, bool mipmaps, <a class="el" href="namespace_voodoo_shader_1_1_texture_format.html#aae01e4123ce28a1e24dfeeda555887ad">TextureFormat::TextureFormat</a> format)=0</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_voodoo_shader_1_1_adapter.html#a1c051e45546aee0ad739dfaef00ba9cd">DrawFSQuad</a> ()=0</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_voodoo_shader_1_1_adapter.html#a863786fb2f968de4146f9a11c3fade04">HandleError</a> (CGcontext context, CGerror error, void *core)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_voodoo_shader_1_1_adapter.html#ae2ee3aa591d310b1171cd22fe3cd70d3">Unbind</a> ()=0</td></tr>
</table>
<hr/><a name="_details"></a><h2>Detailed Description</h2>
<p>Graphics adapter class, responsible for interfacing the Voodoo <a class="el" href="class_voodoo_shader_1_1_core.html" title="Core engine class for the Voodoo Shader Framework.">Core</a> with a given graphics program. </p>
<p>This class should be implemented for a specific graphics application; some generic adapters are provided, but in most cases application-specific behavior will make these only partially helpful. This class does include a generic error-handler function, which adapters may choose not to override if they do not need specific error-handling. </p>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a85e10c37608dc4463a4527d48f49c31a"></a><!-- doxytag: member="VoodooShader::Adapter::Apply" ref="a85e10c37608dc4463a4527d48f49c31a" args="(Parameter *param)=0" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual void VoodooShader::Adapter::Apply </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_voodoo_shader_1_1_parameter.html">Parameter</a> *&nbsp;</td>
          <td class="paramname"> <em>param</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [pure virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Implemented in <a class="el" href="class_voodoo_shader_1_1_direct_x9_1_1_adapter.html#a9d76c1c1cc667d645aa7f666faa3eb4c">VoodooShader::DirectX9::Adapter</a>.</p>

</div>
</div>
<a class="anchor" id="a05b2fafa81c0fdf3d2516720cd85ba1d"></a><!-- doxytag: member="VoodooShader::Adapter::Bind" ref="a05b2fafa81c0fdf3d2516720cd85ba1d" args="(Pass *shader)=0" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual void VoodooShader::Adapter::Bind </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_voodoo_shader_1_1_pass.html">Pass</a> *&nbsp;</td>
          <td class="paramname"> <em>shader</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [pure virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a9724968f648bbe6181ec1b5a890171ce"></a><!-- doxytag: member="VoodooShader::Adapter::CreateTexture" ref="a9724968f648bbe6181ec1b5a890171ce" args="(size_t width, size_t height, size_t depth, bool mipmaps, TextureFormat::TextureFormat format)=0" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="class_voodoo_shader_1_1_texture.html">Texture</a>* VoodooShader::Adapter::CreateTexture </td>
          <td>(</td>
          <td class="paramtype">size_t&nbsp;</td>
          <td class="paramname"> <em>width</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&nbsp;</td>
          <td class="paramname"> <em>height</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&nbsp;</td>
          <td class="paramname"> <em>depth</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&nbsp;</td>
          <td class="paramname"> <em>mipmaps</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="namespace_voodoo_shader_1_1_texture_format.html#aae01e4123ce28a1e24dfeeda555887ad">TextureFormat::TextureFormat</a>&nbsp;</td>
          <td class="paramname"> <em>format</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [pure virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a1c051e45546aee0ad739dfaef00ba9cd"></a><!-- doxytag: member="VoodooShader::Adapter::DrawFSQuad" ref="a1c051e45546aee0ad739dfaef00ba9cd" args="()=0" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual void VoodooShader::Adapter::DrawFSQuad </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [pure virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Implemented in <a class="el" href="class_voodoo_shader_1_1_direct_x9_1_1_adapter.html#a07db001620d4d92d444f30096a30a789">VoodooShader::DirectX9::Adapter</a>.</p>

</div>
</div>
<a class="anchor" id="a863786fb2f968de4146f9a11c3fade04"></a><!-- doxytag: member="VoodooShader::Adapter::HandleError" ref="a863786fb2f968de4146f9a11c3fade04" args="(CGcontext context, CGerror error, void *core)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void VoodooShader::Adapter::HandleError </td>
          <td>(</td>
          <td class="paramtype">CGcontext&nbsp;</td>
          <td class="paramname"> <em>context</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">CGerror&nbsp;</td>
          <td class="paramname"> <em>error</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *&nbsp;</td>
          <td class="paramname"> <em>core</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Reimplemented in <a class="el" href="class_voodoo_shader_1_1_direct_x9_1_1_adapter.html#aab823bb03fcfd6879c6c3c4cb76d17a2">VoodooShader::DirectX9::Adapter</a>.</p>

</div>
</div>
<a class="anchor" id="ae2ee3aa591d310b1171cd22fe3cd70d3"></a><!-- doxytag: member="VoodooShader::Adapter::Unbind" ref="ae2ee3aa591d310b1171cd22fe3cd70d3" args="()=0" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual void VoodooShader::Adapter::Unbind </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [pure virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Implemented in <a class="el" href="class_voodoo_shader_1_1_direct_x9_1_1_adapter.html#a4cd316e51e7d817ba883a02ba787d4a9">VoodooShader::DirectX9::Adapter</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>K:/VoodooShader/Framework/<a class="el" href="_adapter_8hpp_source.html">Adapter.hpp</a></li>
<li>K:/VoodooShader/Framework/<a class="el" href="_adapter_8cpp.html">Adapter.cpp</a></li>
</ul>
</div>
<!--- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&nbsp;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&nbsp;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&nbsp;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&nbsp;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&nbsp;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&nbsp;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&nbsp;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&nbsp;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&nbsp;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&nbsp;</span>Defines</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<hr class="footer"/><address style="text-align: right;"><small>Generated on Thu Oct 14 23:19:05 2010 for Voodoo Shader Framework by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.3 </small></address>
</body>
</html>
